<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>首页</title>
<%@ include file="/page/wx/bizman/include.jsp" %>
</head>
<body>
	<div class="index_part1">
		<div class="index_part1_con">
			<div class="dd_part1">
				<h3>本月客户订单数量</h3>
				<h4>${orderCount }</h4>
			</div>
			<div class="shzx_part">
				<strong><img src="${rootPath}/statics_wx/bizman/images/tit_shzx.png" /></strong>
				<div class="txt1">
					<ul>
						<c:choose>
							<c:when test="${not empty message }">
								<li><a href="<%=basePath%>/wx/wxmessage/toWxMessagePage?messageId=${message.id}">
									<c:choose>
										<c:when test="${fn:length(message.title) >= 20 }">
                                                  ${fn:substring(message.title, 0, 20) }...
                                              </c:when>
										<c:otherwise>
                                            ${message.title}
                                        </c:otherwise>
									</c:choose>
								</a></li>
							</c:when>
							<c:otherwise>
								<li><a href="${rootPath}/wx/wxmessage/toWxMessageListPage">暂无咨询</a></li>
							</c:otherwise>
						</c:choose>
					</ul>
				</div>
				<div class="more_part">
					<i></i>
					<p>
						<a href="${rootPath}/wx/wxmessage/toWxMessageListPage">更多</a>
					</p>
				</div>
			</div>
			<div class="wdkh_part">
				<h1>我的客户</h1>
				<div class="wdkh_part1">
					<ul>
						<li id="toPendingApprovalPage">
							<p>
								<i id="pendingApprovalCount">0</i> <span>待审核客户</span>
							</p>
						</li>
						<li>
							<p>
								<i id="myCustomerCount">0</i> <span>数量（人）</span>
							</p>
						</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
	<div class="index_part1">
		<div class="index_part1_con">
			<div class="khdd_part">
				<h1>客户订单</h1>
				<div class="khdd_part1">
					<ul>
						<li>
							<p>
								<i>${salesmanWaitToApprove }</i> <span>待审核订单</span>
							</p>
						</li>
						<li>
							<p>
								<i>${salesmanOrderCount }</i> <span>总数量（单）</span>
							</p>
						</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
	<jsp:include page="../wx_footer.jsp" />
</body>
<script src="<%=basePath%>/js/wx/bizman/home/index.js?v=new Date()"></script>
</html>